import { configureStore } from '@reduxjs/toolkit'

import userReducer from './modules/reduxUser'

export const store = configureStore({
  reducer: {
    userStore: userReducer,
  },
})

// 推断 RootState 类型
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
